package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.OrdertbEntity;
import dao.mapper.OrdertbDAOI;

/**
*@author JiangFan
*/
public class OrdertbDAO extends BaseDao implements OrdertbDAOI {

}
class OrdertbRowMapper implements RowMapper<OrdertbEntity>{
	@Override
	public OrdertbEntity rowmap(ResultSet set) throws  SQLException{
		return new OrdertbEntity(
			set.getString("order_id"),
			set.getString("order_name"),
			set.getString("order_address"),
			set.getString("goods_id"),
			set.getString("order_phone"),
			set.getString("customer_id"),
			set.getDate("payment_date"),
			set.getDate("delivery_date"),
			set.getDouble("order_price"),
			set.getString("courier_number"),
			set.getString("method_payment"),
			set.getString("order_state")
		);
	}
}
